/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rbh.risk.service.impl;

import com.rbh.risk.dao.DrugItemsDao;
import com.rbh.risk.entity.DrugItems;
import com.rbh.risk.service.DrugItemsService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("drugItemsService")
public class DrugItemsServiceImpl implements DrugItemsService {

    @Autowired
    private DrugItemsDao drugItemsDao;

    @Override
    public DrugItems getById(String icode) {
        return drugItemsDao.getById(icode);
    }

    @Override
    public List<DrugItems> getAll() {
        return drugItemsDao.getAll();
    }

    @Override
    public List<DrugItems> getByWords(String words) {
        return drugItemsDao.getByWords(words);
    }
}
